<?php

namespace app\api\model\shop;

use think\Model;

class ShopMessageModel extends Model
{
    protected $name = 'shop_message';

    public function getLogoImageAttr($value)
    {
        return Https($value);
    }

    /**
     * Notes: 所有店铺列表
     * User: AerYYY
     * Date: 6/30/25
     * @return bool|\PDOStatement|string|\think\Collection
     * @throws \think\db\exception\DataNotFoundException
     * @throws \think\db\exception\ModelNotFoundException
     * @throws \think\exception\DbException
     */
    public function list()
    {
        return $this->field('id,name,mobile,logo_image,address,create_time')
            ->order('id desc')
            ->select();
    }


}